#ifndef _PLAYERS_MANAGER_H
#define _PLAYERS_MANAGER_H

#include "gamePlay.h"
#include "ofMain.h"
#include "player.h"
#include "soundManager.h"

class playersManager
{

private:
	player*					myPlayersTeamA; 
	player*					myPlayersTeamB; 
	int						totalTeamPlayers;
	soundManager*			mySoundManager;
	gamePlay*				myGamePlay;

public:
	playersManager(gamePlay* _myGamePlay,soundManager* _mySoundManager,int _totalTeamPlayers);
	~playersManager();
	int getTotalLifePlayers(int team);
	void movePlayer(int action,int team, int id);
	void shootFailPlayer(int team, int id);
	void initialPosition();
	void update();
	bool getScreenPos(int posX,int posY,char team);
	int	 getIdScreenPos(int posX,int posY,char team);
	bool checkPositionTeamA(int posX,int posY);
	bool checkPositionTeamB(int posX,int posY);
	void shootingPlayer(int team, int id, int value);
	void shootedPlayer(int team, int id);
	bool getLife(int id, char team);
};

#endif